package loveqq.crud.entity;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@Table("user")
public class User {
    @Id
    private Long id;
    private String name;
    private Integer age;
    @Column("create_date")
    private LocalDateTime createDate;
}
